package com.boot2523.myredis.r1;

import redis.clients.jedis.Jedis;

import java.util.List;

public class R2 {
    public static void main(String[] args) {
        //取出多个值
        Jedis j=new Jedis();
        List<String> data=j.mget("a","age","b");
        System.out.println(data);
        //修改
        j.mset("a","1000","b","2000","age","22");
        System.out.println(j.mget("a","b","age"));
        //增加
        j.incr("a");
        //减少
        j.decr("b");
        System.out.println(j.mget("a","b","age"));
    }
}
